$(document).ready(function() {	
	$('button').click(function() {
	
		var id_button = $(this).attr("id");
		var mail = $(this).parent().parent().children(":nth-child(4)").html();
		
		if (window.XMLHttpRequest){
			xmlhttp=new XMLHttpRequest();
		}else{
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		xmlhttp.onreadystatechange=function(){
			if (xmlhttp.readyState==4 && xmlhttp.status==200){
				document.getElementById("conteneur").innerHTML=xmlhttp.responseText;
			}
		}
		xmlhttp.open("GET","affichage_inscription.php?q="+id_button+"&mail="+mail,true);
		xmlhttp.send();
		
	});
	
});  
